// Injection Disable Nvidia
// Author: tsln1998@gmail.com


DefinitionBlock ("", "SSDT", 2, "hack", "NVIDIA", 0x00000000)
{
    External(_SB.PCI0, DeviceObj)
    External(NPTS, MethodObj)
    External(NWAK, MethodObj)
    External(_SB.PCI0.NINI, MethodObj)
    
    External (_SB_.PCI0.PEG0.PEGP._PS3, MethodObj)
    External (_SB_.PCI0.PEG0.PEGP._PS0, MethodObj)
    External (_SB_.PCI0.PEG0.PEGP._OFF, MethodObj)
    External (_SB_.PCI0.PEG0.PEGP._ON, MethodObj)
    External (_SB_.PCI0.PEG0.PEGP.SGOF, MethodObj)
    External (_SB_.PCI0.PEG0.PEGP.SGON, MethodObj)
    
    
    Method (M_ON, 0, NotSerialized)
    {
        If (CondRefOf (\_SB_.PCI0.PEG0.PEGP._ON))
        {
            \_SB_.PCI0.PEG0.PEGP._ON()
        }
        If (CondRefOf (\_SB_.PCI0.PEG0.PEGP._PS0))
        {
            \_SB_.PCI0.PEG0.PEGP._PS0()
        }
        If (CondRefOf (\_SB_.PCI0.PEG0.PEGP.SGON))
        {
            \_SB_.PCI0.PEG0.PEGP.SGON()
        }
    }
    
    Method (M_OF, 0, NotSerialized)
    {
        If (CondRefOf (\_SB_.PCI0.PEG0.PEGP._OFF))
        {
            \_SB_.PCI0.PEG0.PEGP._OFF()
        }
        If (CondRefOf (\_SB_.PCI0.PEG0.PEGP._PS3))
        {
            \_SB_.PCI0.PEG0.PEGP._PS3()
        }
        If (CondRefOf (\_SB_.PCI0.PEG0.PEGP.SGOF))
        {
            \_SB_.PCI0.PEG0.PEGP.SGOF()
        }
    }
    
    
    Method (_PTS, 1, NotSerialized)
    {
        M_ON ()
        NPTS (Arg0)
    }
    
    Method (_WAK, 1, Serialized)
    {
        M_OF ()
        Return (NWAK (Arg0))
    }
    
    Method (_SB.PCI0._INI, 0, Serialized)
    {
        M_OF ()
        \_SB.PCI0.NINI()
    }
}